<template>
  <div class="gl_contentBox gl_heightFull">
    <el-tabs v-model="activeTab" type="card">
      <el-tab-pane v-for="(item, index) in tabList" :key="index" :label="item.label" :name="item.code">
        <component :is="item.component" v-if="activeTab === item.code" :rank-type="item.code" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import all from './all.vue';

export default {
  data () {
    return {
      activeTab: 'All',
      storeId: '',
      tabList: [
        {
          label: '总榜',
          code: 'All',
          component: all
        },
        {
          label: '竞技榜',
          code: 'Competitive',
          component: all
        },
        {
          label: '品势榜',
          code: 'NoneCompetitive',
          component: all
        }
      ]
    };
  },
  created() {
    // this.api_GET_MallStoreCurrent();
  },
  methods: {
    // api_GET_MallStoreCurrent() {
    //   api_GET_MallStoreCurrent({ IncludeStatus: true }).then(res => {
    //     this.storeId = res.id || '';
    //   }, error => {
    //     const _msg = error.error.message || error.message;
    //     this.$message({ type: 'error', message: _msg });
    //   });
    // }
  }
};
</script>

<style lang="scss" scoped>

</style>
